import request from '@/utils/request'

// 查询学院模块列表
export function listCollege(query) {
  return request({
    url: '/college/college/list',
    method: 'get',
    params: query
  })
}
export function getColleges() {

// 查询学院信息初始化下拉列表
  return request({
    url: '/college/college/getAllCollege',
    method: 'get',
  })
}

// 查询学院模块详细
export function getCollege(coid) {
  return request({
    url: '/college/college/' + coid,
    method: 'get'
  })
}

// 新增学院模块
export function addCollege(data) {
  return request({
    url: '/college/college',
    method: 'post',
    data: data
  })
}

// 修改学院模块
export function updateCollege(data) {
  return request({
    url: '/college/college',
    method: 'put',
    data: data
  })
}

// 删除学院模块
export function delCollege(coid) {
  return request({
    url: '/college/college/' + coid,
    method: 'delete'
  })
}
